// 数组类型

export {}
const arr1: Array<number> = [2, 3, 4]

const arr2: number[] = [3, 5,3]


 //================
 function sum (...args: number[]){
    return args.reduce((prev, current) => prev + current, 0)
 }

//  sum(2, 3, 2, 'foo')
 sum(2, 3, 2, )







